
import axios from "../../axios.js"
const admins = {
    getAdmins(data){
        return axios({
            url:'/admins/getAdmins',
            method:"post",
            data
        })
    },
    updateAdminPassword(data){
        return axios({
            url:'/admins/updataAdminPassword',
            method:'post',
            data
        })
    },
    frozenAdmin(data){
        return axios({
            url:'/admins/frozenAdmin',
            method:'post',
            data
        })
    },
    //新增管理员
    addNewAdmin(data){
        return axios({
            url:'/admins/addNewAdmin',
            method:'post',
            data
        })
    },
     // 管理员登录
     loginBtn(data) {
        return axios({
            url: "/admins/superLogin",
            method: "post",
            data
        })
    },
    // 验证登录
    islogin(params) {
        return axios({
            url: '/admins/isLogin',
            method: 'get',
            params
        })
    },
}

export default admins